<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal"
	scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

	<%@ include file="/WEB-INF/include/header.jsp"%>
	<%@ include file="/WEB-INF/include/submenu.jsp"%>

	<div class="container-fluid ms-container has-ms-sidemenu">

		<ol class="ms-breadcrumb breadcrumb">
			<li class="active">结算收入成本分析</li>
		</ol>

	<div class="ms-content-layout has-operation">

			<form method="GET" id="validate-form" data-validate="true">

				<input type="hidden" name="queryString" value="${queryString}" /> 

				<div class="radio-check"></div>
				<table class="table table-hover ms-table">
					<thead class="blue-header">
						<tr>
						<th>序号</th>						
						<th>中文车牌号</th>
                        <th>轮胎费</th>
                        <th>起始地仓库名</th>
						<th>起始地所在省</th>
						<th>起始地城市</th>
						<th>调度时间</th>
						<th>路桥费</th>
						<th>修理费</th>
						<th>外包结算费用</th>
						<th>外包公司名</th>
						<th>其他费用汇总</th>
						<th>油费</th>
						<th>制造商名称</th>
						<th>主驾工资</th>
						<th>装载量</th>
						<th>行驶公里数</th>
						<th>关联的空载指令成本汇总</th>
						<th>关联的空载指令号</th>
						<th>目的地所在省</th>
						<th>客户名称</th>
						<th>合同起始地仓库名</th>
						<th>合同结算公里数</th>
						<th>合同结算收入</th>
						<th>合同目的地仓库名</th>
						<th>委托方</th>
						<th>承运方</th>
						</tr>
					</thead>

					<tbody>
						<c:forEach items="${costRevenueAnalysis}" var="costRevenueAnalysis" varStatus="status">
							<tr>
								 <td>${status.count}</td>
								 <td>${costRevenueAnalysis.vehicleName}</td>
					              <td>${costRevenueAnalysis.tyreFee}</td>
					              <td>${costRevenueAnalysis.srcWhName}</td>
					              <td>${costRevenueAnalysis.srcProvName}</td>
					              <td>${costRevenueAnalysis.srcCityName}</td>
					              <td>${costRevenueAnalysis.shipmentDate}</td>
					              <td>${costRevenueAnalysis.roadFee}</td>
					              <td>${costRevenueAnalysis.repairFee}</td>
					              <td>${costRevenueAnalysis.outsourcingFee}</td>
					              <td>${costRevenueAnalysis.outsourcingCompanyName}</td>
					              <td>${costRevenueAnalysis.otherFeeSum}</td>
					              <td>${costRevenueAnalysis.oilFee}</td>
					              <td>${costRevenueAnalysis.manufactorName}</td>
					              <td>${costRevenueAnalysis.mainDriverSalary}</td>
					              <td>${costRevenueAnalysis.loadQuantity}</td>
					    		  <td>${costRevenueAnalysis.loadDistance}</td>
					              <td>${costRevenueAnalysis.emptyCostSum}</td>
					              <td>${costRevenueAnalysis.emptyCodeUnion}</td>
					              <td>${costRevenueAnalysis.destProvName}</td>
					              <td>${costRevenueAnalysis.customerName}</td>
					              <td>${costRevenueAnalysis.contractSrcWhName}</td>
					              <td>${costRevenueAnalysis.contractKilometer}</td>
					              <td>${costRevenueAnalysis.contractFee}</td>
					              <td>${costRevenueAnalysis.contractDestWhName}</td>
					              <td>${costRevenueAnalysis.consignorName}</td>
					              <td>${costRevenueAnalysis.companyName}</td>
					              
							</tr>
						</c:forEach>
						   
					</tbody>
					<tfoot>
						<tr>
			            <td colspan="30" class="no-vertical-padding">
			              <div class="pull-left">
			                <jsp:include page="/WEB-INF/include/page.jsp">
			                  <jsp:param name="url" value="${ctx.host}/shipment-cost-seach" />
			                  <jsp:param name="queryString" value="${queryString}" />
			                </jsp:include>
			              </div>
			              <div class="pull-right">
			                <c:if test="${page.totals > 0}">
			                  <a href="${ctx.host}/shipment-cost-export?${queryString}&per_page=${config.everyPage}&page=${page.currentPage}" class="btn btn-default ms-export">输出当前记录</a>
			                  <a href="${ctx.host}/shipment-cost-on-export?${queryString}&per_page=${config.limit}&page=1" class="btn btn-default ms-export">输出所有记录</a>
			                </c:if>
			              </div>
			            </td>
			          </tr>
					</tfoot>
				</table>
				</form>
</div>

	</div>

	<%@ include file="/WEB-INF/include/script.jsp"%>
	
</body>
</html>